<?php

class CMS_Document extends Zend_Db_Table_Abstract
{
    protected $_name  = 'documents';
    protected $_primary  = 'id';
	
	function getId($path){
		$sel = $this->select()->where('document_path=\'/'.$path.'\'');
		$res = $this->fetchRow($sel)->toArray();
		return $res["id"];
	}
	
}
?>